package com.qk.management.controller;

import com.qk.common.Result;
import com.qk.dto.log.LogPageDTO;
import com.qk.management.service.OperateLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/logs")
public class OperateLogController {
    @Autowired
    private OperateLogService operateLogService;

    @GetMapping
    public Result pageLogs(LogPageDTO dto){
        return Result.success(operateLogService.pageLogs(dto));
    }
}
